﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LinkedGroupEdit.aspx.cs" Inherits="Evpo.ContactData.UI.LinkedGroupEdit" %>
<%@ Register TagPrefix="local" TagName="ContactList" Src="~/ContactList.ascx" %>
<%@ Register TagPrefix="local" TagName="LinkedGroup" Src="~/LinkedGroup.ascx" %>
<%@ Register TagPrefix="local" TagName="ContactInList" Src="~/ContactInList.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="Styles/ContactInList.css" rel="Stylesheet" type="text/css" />
    <link href="Styles/Paginator.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:SiteMapPath ID="SiteMapPath1" runat="server">
    </asp:SiteMapPath><br /><br />
    <label>Contact:</label>
    <local:ContactInList 
        runat="server" ID="uiContactInList" CanBeSelected="false" 
        ContactItem='<%# ViewModel.LoadContactListItem(ViewModel.ContactID) %>' />
    <br/>
    <fieldset>
        <local:ContactList runat="server" ID="uiContactList" />
    </fieldset>
    <br />
    <asp:DropDownList runat="server" ID="uiRelationshipTypes" DataTextField="Name" DataValueField="ID"/>
    <asp:Button runat="server" ID="uiAddRelationship" Text="Add Relationship" 
        onclick="uiAddRelationship_Click" /><br />
    <h1>Relationships</h1>
    <fieldset>
        <local:LinkedGroup runat="server" ID="uiLinkedGroup" />
        <br />
        <asp:Button runat="server" ID="uiRemove" Text="Remove Selected" Enabled='<%#uiLinkedGroup.ItemCount > 0 %>' 
            onclick="uiRemove_Click"/>
    </fieldset>
</asp:Content>
